From: Julien Grall Date: Mon, 24 Feb 2014 11:32:00 +0000 (+0100) Subject: vtd: don't export iommu_set_pgd X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5556 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=2608662379d50e69b3bba4e6827fc910db9f64f8;p=xen.git vtd: don't export iommu_set_pgd iommu_set_pgd is only used internally in xen/drivers/passthrough/vtd/iommu.c Signed-off-by: Julien Grall Acked-by: Xiantoa Zhang Acked-by: Jan Beulich Acked-by: Ian Campbell --- diff --git a/xen/drivers/passthrough/vtd/iommu.c b/xen/drivers/passthrough/vtd/iommu.c index a8d33fc708..d5ce5b7bdf 100644 --- a/xen/drivers/passthrough/vtd/iommu.c +++ b/xen/drivers/passthrough/vtd/iommu.c @@ -1826,7 +1826,7 @@ static int vtd_ept_page_compatible(struct iommu *iommu) /* * set VT-d page table directory to EPT table if allowed */ -void iommu_set_pgd(struct domain *d) +static void iommu_set_pgd(struct domain *d) { struct hvm_iommu *hd = domain_hvm_iommu(d); mfn_t pgd_mfn; diff --git a/xen/include/xen/iommu.h b/xen/include/xen/iommu.h index ae7e75d013..4f534ed705 100644 --- a/xen/include/xen/iommu.h +++ b/xen/include/xen/iommu.h @@ -68,7 +68,6 @@ int iommu_map_page(struct domain *d, unsigned long gfn, unsigned long mfn, unsigned int flags); int iommu_unmap_page(struct domain *d, unsigned long gfn); void iommu_pte_flush(struct domain *d, u64 gfn, u64 *pte, int order, int present); -void iommu_set_pgd(struct domain *d); void pt_pci_init(void);